﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;  //  for Vector2
using Microsoft.Xna.Framework.Graphics;   //   for Texture2D
using Microsoft.Xna.Framework.Content;

namespace zombieArena
{
    class Powerup
    {
        public int size { get; set; }
        public int id { get; set; }
        public Texture2D texture { get; set; }
        public Vector2 position { get; set; }

        public Powerup(Texture2D t, int id, Vector2 pos)
        {
            texture = t;
            size = 40;
            this.id = id;
            position = pos;
        }

        public void setValues(Vector2 pos, Texture2D powerupTexture)
        {
            position = pos;
            texture = powerupTexture;
            size = powerupTexture.Height;
        }

        internal void Draw(SpriteBatch spriteBatch, Texture2D powerupTexture, Vector2 pos)
        {
            
            spriteBatch.Draw(powerupTexture, pos, Color.White);
        }
    }
}
